<?php echo $this->Html->css(array('ogloszenia.index'),null,array('inline'=>false));?>

<div id="left-panel">
	<div id="logo"><?php echo $this->Html->link($this->Html->image('logo.png'),'/',array('escape'=>false,'alt'=>'strzyzowianin.pl'))?></div>
	<h2><?php echo __('oferty pracy')?></h2>
	<ul>
		<li><?php echo $this->Html->link(__('wyszukaj',true).$this->Html->image('search.png',array('align'=>'middle','class'=>'menu-main-icons')),array('controller'=>'pages','action'=>'praca'),array('escape'=>false))?></li>
		<?php echo $this->element('menu-praca')?>
	</ul>

</div>
<div id="right-panel">
	<h2><?php __('Twoje oferty');?></h2>
	<table cellpadding="0" cellspacing="0" class="index">
	<tr>
		<td><?php echo __('Sortuj wg.:',true)?> <?php echo $this->Paginator->sort(__('Nazwa',true),'name');?>, <?php echo $this->Paginator->sort(__('Data utworzenia',true),'created');?></td>
	</tr>
	<?php
	$i = 0;
	foreach ($ogloszenias as $ogloszenia):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td>
			<h4><?php echo $this->Html->link($ogloszenia['Ogloszenia']['name'], array('action' => 'view', $ogloszenia['Ogloszenia']['slug'])); ?>&nbsp;</h4>			
			<?php echo $this->Text->truncate($ogloszenia['Ogloszenia']['content'],300,array('ending' => '...','exact' => false,'html' => true)); ?>&nbsp;
			<div class="actions">
				<?php echo $this->Html->link(__('Zobacz', true), array('action' => 'view', $ogloszenia['Ogloszenia']['slug'])); ?>
				<?php echo $this->Html->link(__('Edytuj', true), array('action' => 'edit', $ogloszenia['Ogloszenia']['id'])); ?>
				<?php echo $this->Html->link(__('Usuń', true), array('action' => 'delete', $ogloszenia['Ogloszenia']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ogloszenia['Ogloszenia']['id'])); ?>
				
			</div>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<?php echo $this->element('stronicowanie')?>
</div>
